package com.banana.manager.forest.entity.handle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;

@TableName("class_info")
@Getter
@Setter
@NoArgsConstructor
@ToString
public class ClassBean {

    @TableId(value = "class_id",type = IdType.AUTO)
    private Integer classId;

    @TableField("class_name")
    private String className;

    @TableField("class_leader")
    private String classLeader;

    @TableField("class_phone")
    private String classPhone;

    @TableField("class_total")
    private String classTotal;

    @TableField("class_date")
    private LocalDate classDate;

    public ClassBean(String className, String classLeader, String classPhone, String classTotal, LocalDate classDate) {
        this.className = className;
        this.classLeader = classLeader;
        this.classPhone = classPhone;
        this.classTotal = classTotal;
        this.classDate = classDate;
    }
}
